﻿

namespace Stimulus360.Models.Data.CustomTypes
{
    /// <summary>
    ///     Class represents the Budget , spent amount and number of jobs for an investment category
    /// </summary>
    public class BudgetSpendSummary
    {
        /// <summary>
        ///     The Category title
        /// </summary>
        private string _category;

        /// <summary>
        ///     Property to expose the  Category title
        /// </summary>
        public string InvestmentCategory
        {
            get
            {
                return _category;
            }
            set
            {
                _category = value;
            }
        }

        /// <summary>
        ///     Property to get the category title trimmed to 5 char
        /// </summary>
        public string InvestmentCategorySubstring
        {
            get
            {
                if (_category.Length > 5)
                {
                    return _category.Substring(0, 5) + "..";

                }

                return _category;

            }


        }

        /// <summary>
        ///     The Budget allocated to this category for the current financial year
        /// </summary>
        public int Budget { get; set; }

        /// <summary>
        ///     The Budget spent in this category for the current financial year
        /// </summary>
        public int Spent { get; set; }

        /// <summary>
        ///     The jobs created in this category for the current financial year
        /// </summary>
        public int JobCount { get; set; }
    }

}
